#!/bin/bash 


echo "TestCode.c"
cd "/home/ubuntu/c_4_with_class/"
./build/C4_WITH_CLASS ./test/testcode.c > ./test/tmp.S
clang ./test/tmp.S ./test/common.c -o ./test/d.out
./test/d.out

echo "------------------------------------------------"

echo "TestPointer.c"
./build/C4_WITH_CLASS ./test/testPointer.c > ./test/tmp.S
clang ./test/tmp.S ./test/common.c -o ./test/d.out
./test/d.out

echo "------------------------------------------------"

echo "TestArray.c"
./build/C4_WITH_CLASS ./test/testArray.c > ./test/tmp.S
clang ./test/tmp.S ./test/common.c -o ./test/d.out
./test/d.out